algalcommand.math
Class CubicInterpolator
java.lang.Object
algalcommand.math.CubicInterpolator
public abstract class CubicInterpolator
- extends java.lang.Object
used for the cubic interpolation of non-grid data
|
Method Summary |
static java.lang.Double |
interpolateAtX(java.lang.Double x,
java.awt.geom.Point2D n1,
java.awt.geom.Point2D n2,
java.awt.geom.Point2D n3,
java.awt.geom.Point2D n4)
Fits a cubic formula to the 4 points provided, than uses that formula to
return the Y value at X. |
static void |
main(java.lang.String[] a)
for testing only |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CubicInterpolator
public CubicInterpolator()
interpolateAtX
public static java.lang.Double interpolateAtX(java.lang.Double x,
java.awt.geom.Point2D n1,
java.awt.geom.Point2D n2,
java.awt.geom.Point2D n3,
java.awt.geom.Point2D n4)
- Fits a cubic formula to the 4 points provided, than uses that formula to
return the Y value at X.
- Parameters:
x - n1 - n2 - n3 - n4 -
- Returns:
main
public static void main(java.lang.String[] a)
- for testing only